package com.szml.permission.mapper;

import org.apache.ibatis.annotations.Mapper;

/**
 * @Author limin
 * @date 2025-06-20 20:46
 * @description
 */
@Mapper
public interface UserRoleMapper {

    void insertDefaultRole(Long userId);

    /**
     * 通过userId查询得到roleCode
     * @param userId
     * @return
     */
    String selectRoleCodeByUserId(Long userId);

    /**
     * 更新权限
     * @param userId
     * @param roleRode
     */
    void updateUserRole(Long userId, String roleRode);
}
